package cn.wolfcode.p2p;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * Hello world!
 */
@Configuration
@EnableAutoConfiguration
@ComponentScan
@MapperScan(basePackages = "cn.wolfcode.p2p.*.mapper")
@EnableTransactionManagement(proxyTargetClass = true)
//@EnableTransactionManagement
public class CoreConfig {
    public static void main(String[] args) {
        System.out.println("Hello World!");
    }
}
